import { applyVueInReact } from 'veaury';

// 动态加载所有页面
const pages = new Map();
const modules = import.meta.glob('./pages/**/*.vue', { eager: true });
for (const path in modules) {
    const name = path.replace(/^\.\/pages\/|.vue$/g, '');
    const VueComponent = applyVueInReact(modules[path].default);
    pages.set(name.replace(/\/|\\/g, '.'), VueComponent);
}
export { pages };